package com.notelapierdas.objects;

import android.os.Parcel;
import android.os.Parcelable;

public class Title implements Parcelable{
	String longTitle;
	String shortTitle;
	
	public Title(String longTitle, String shortTitle){
		this.longTitle = longTitle;
		this.shortTitle = shortTitle;
	}

	public String getLongTitle() {
		return longTitle;
	}

	public void setLongTitle(String longTitle) {
		this.longTitle = longTitle;
	}

	public String getShortTitle() {
		return shortTitle;
	}

	public void setShortTitle(String shortTitle) {
		this.shortTitle = shortTitle;
	}
	
	/////////////Parcelable//////////////////////////////
	
	public Title(Parcel in) {
		readFromParcel(in);
	}

	private void readFromParcel(Parcel in) {
		// TODO Auto-generated method stub
		longTitle = in.readString();
		shortTitle = in.readString();
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeString(longTitle);
		dest.writeString(shortTitle);
	}	

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}
	
	@SuppressWarnings("rawtypes")
	public static final Parcelable.Creator CREATOR =
    	new Parcelable.Creator() {
            public Title createFromParcel(Parcel in) {
                return new Title(in);
            }
 
            public Title[] newArray(int size) {
                return new Title[size];
            }
        };
	
	///////////////////////////////////////////////////////
	
}
